Skip to content

adding OPEN_TREE_NAMESPACE and fsopen/fsconfig/fsmount/fspick constan…#5145

Merged
tgross35 merged 1 commit into
rust-lang:mainfrom
devnexen:linux-new-mount-api
Jun 19, 2026
Merged

adding OPEN_TREE_NAMESPACE and fsopen/fsconfig/fsmount/fspick constan…#5145
tgross35 merged 1 commit into
rust-lang:mainfrom
devnexen:linux-new-mount-api

Conversation

@devnexen

@devnexen devnexen commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

…ts for Linux (7.0)

Close #5072

ref

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@devnexen devnexen force-pushed the linux-new-mount-api branch from bb7dfff to 7957b2b Compare June 6, 2026 22:05
@devnexen devnexen marked this pull request as ready for review June 7, 2026 05:41
@rustbot

This comment has been minimized.

@devnexen devnexen force-pushed the linux-new-mount-api branch from 7957b2b to 19d0872 Compare June 7, 2026 05:42
@rustbot

This comment has been minimized.

Comment thread libc-test/build.rs Outdated
Comment on lines +4187 to +4192
// FIXME(linux): Requires newer kernel headers than CI has, even on glibc,
// so skip on every libc until CI catches up. OPEN_TREE_NAMESPACE landed in
// v7.0, FSCONFIG_CMD_CREATE_EXCL in v6.6.
if name == "OPEN_TREE_NAMESPACE" || name == "FSCONFIG_CMD_CREATE_EXCL" {
return true;
}

@tgross35 tgross35 Jun 19, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should have these now, CI was recently updated to something with 7.0

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately I had to put it back still some lower tiers run old kernels.

Comment thread src/unix/linux_like/linux/mod.rs Outdated
Comment on lines +3121 to +3130
// enum fsconfig_command
pub const FSCONFIG_SET_FLAG: c_uint = 0;
pub const FSCONFIG_SET_STRING: c_uint = 1;
pub const FSCONFIG_SET_BINARY: c_uint = 2;
pub const FSCONFIG_SET_PATH: c_uint = 3;
pub const FSCONFIG_SET_PATH_EMPTY: c_uint = 4;
pub const FSCONFIG_SET_FD: c_uint = 5;
pub const FSCONFIG_CMD_CREATE: c_uint = 6;
pub const FSCONFIG_CMD_RECONFIGURE: c_uint = 7;
pub const FSCONFIG_CMD_CREATE_EXCL: c_uint = 8;

@tgross35 tgross35 Jun 19, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use c_enum!?

View changes since the review

@rustbot

rustbot commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@devnexen devnexen force-pushed the linux-new-mount-api branch from 19d0872 to 066bb63 Compare June 19, 2026 08:49
@rustbot

rustbot commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@devnexen devnexen force-pushed the linux-new-mount-api branch from 066bb63 to 8970d05 Compare June 19, 2026 09:07
@devnexen devnexen force-pushed the linux-new-mount-api branch from 8970d05 to 3be48b4 Compare June 19, 2026 09:14
@devnexen

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@tgross35 tgross35 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tgross35 tgross35 enabled auto-merge June 19, 2026 09:33
@tgross35 tgross35 added this pull request to the merge queue Jun 19, 2026
Merged via the queue into rust-lang:main with commit 204104b Jun 19, 2026
102 of 104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linux "new" mount API constants, incl. 7.0 additions

3 participants